package cn.tj212.xiaoyin.core.course.dao;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.course.domain.CourseComment;

import java.util.List;

public interface CourseCommentDao {
    CourseComment getById(Long id);

    List<CourseComment> queryAll(CourseComment queryEntity);

    Integer getTotalItemsCount(CourseComment queryEntity);

    List<CourseComment> queryPage(CourseComment queryEntity, TailPage<CourseComment> page);

    Integer getMyQAItemsCount(CourseComment queryEntity);

    List<CourseComment> queryMyQAItemsPage(CourseComment queryEntity, TailPage<CourseComment> page);

    void create(CourseComment entity);

    void createSelectivity(CourseComment entity);

    void update(CourseComment entity);

    void updateSelectivity(CourseComment entity);

    void delete(CourseComment entity);

    void deleteLogic(CourseComment entity);
}
